package edu.gdkm.demo6.demo2;

public class Test {
    public static void main(String[] args) {

        Employee e=new Employee() {
            @Override
            public double salary_count() {
                return 0;
            }
        };
        Employee employee=new Manager(300000.0,100000.0);
        System.out.println(employee.salary_count());

        Employee employee2=new Secretary();
        System.out.println(employee2.salary_count());
    }
}
